import request from '@/utils/request'

interface ShopListRes {
  total: number
  data: Array<{
    address: string
    createBy: string
    createdAt: string
    updatedAt: string
    deletedAt: null
    id: string
    name: string
    phone: string
    type: number
  }>
}

export function getShopList(id): Promise<any> {
  return request.get<ShopListRes>('/shop/getShopList', { params: { id } })
}
